import { ApiProperty } from '@nestjs/swagger';
import { IsArray, IsOptional, IsString } from 'class-validator';

export class DeleteDto {
  @IsOptional()
  @IsString({ message: 'id必须是字符串' })
  id?: string;

  @IsOptional()
  @IsArray({ message: 'ids必须是数组' })
  @ApiProperty({ description: '多条数据' })
  ids?: string[];
}
